package com.ff.ffa;

import android.app.Activity;
import android.content.Context;
import android.util.Log;
import com.bykv.vk.openvk.VfSlot;
import com.bykv.vk.openvk.mediation.MediationConstant;
import com.bykv.vk.openvk.mediation.bridge.custom.fullvideo.MediationCustomFullVideoLoader;
import com.bykv.vk.openvk.mediation.custom.MediationCustomServiceConfig;
import com.bykv.vk.openvk.mediation.custom.MediationRewardItem;
import bi.GL;
import yyee.llee.mmee.wifimaster.utils.ThreadUtils;
import com.qq.e.ads.interstitial2.ADRewardListener;
import com.qq.e.ads.interstitial2.UnifiedInterstitialAD;
import com.qq.e.ads.interstitial2.UnifiedInterstitialADListener;
import com.qq.e.ads.interstitial2.UnifiedInterstitialMediaListener;
import com.qq.e.comm.util.AdError;
import com.manager.core.pl190.host668.JWAdBase;
import com.manager.core.pl190.host668.NConst;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;

/**
 * 全屏视频广告 adapter
 */
public class FFAFullVideoAdapter extends MediationCustomFullVideoLoader {

    private static final String TAG = NConst.TAG + FFAFullVideoAdapter.class.getSimpleName();

    private JWAdBase nmAdBase;

    private volatile UnifiedInterstitialAD mUnifiedInterstitialAD;

    private boolean isLoadSuccess;

    @Override
    public void load(Context context, VfSlot adSlot, MediationCustomServiceConfig mediationCustomServiceConfig) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
        int keydasopuerqnfdazcveq = 4;
        int lowupoeqfda7073fdal = 0;
        int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
        int middledaiueprnvznfewqip = 0;
        if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
            int adfajpouqregjbdipug = 1;
        } else {
            while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                    // 比关键字大则关键字在左区域
                    highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                    // 比关键字小则关键字在右区域
                    lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                } else {
                }
            }
        }
        GL.d(TAG, " Thread = " + Thread.currentThread().getName() + "   加载到自定义的banner了 serviceConfig = " + mediationCustomServiceConfig);
        // 子线程进行广告加载
        ThreadUtils.runOnThreadPool(new Runnable() {

            @Override
            public void run() {
                int passwordfdare32432qresafdsagda32 = 123456;
                int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
                for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
                    int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
                    while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                        arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                        jfdsaipureqwrewq7843791298047ui--;
                    }
                    arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
                }
                if (context instanceof Activity) {
                    mUnifiedInterstitialAD = new UnifiedInterstitialAD((Activity) context, mediationCustomServiceConfig.getADNNetworkSlotId(), new UnifiedInterstitialADListener() {

                        @Override
                        public void onADReceive() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            isLoadSuccess = true;
                            Log.i(TAG, "onADReceive");
                            if (isClientBidding()) {
                                // bidding类型广告
                                // 当无权限调用该接口时，SDK会返回错误码-1
                                double ecpm = mUnifiedInterstitialAD.getECPM();
                                if (ecpm < 0) {
                                    ecpm = 0;
                                }
                                Log.e(TAG, "ecpm:" + ecpm);
                                // biddingPrice:bidding广告对应的价格 单位：分
                                callLoadSuccess(ecpm);
                            } else {
                                // 普通类型广告
                                callLoadSuccess();
                            }
                        }

                        @Override
                        public void onVideoCached() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] quiwyieqasdad = new int[] { 12, 34, 3 };
                            int asdjasdhjkah;
                            // 第一层循环:表明比较的次数, 比如 length 个元素,比较次数为 length-1 次（肯定不需和自己比）
                            for (int ahjdgajhsd = 0; ahjdgajhsd < quiwyieqasdad.length - 1; ahjdgajhsd++) {
                                for (int uiqwyeuiqwe = quiwyieqasdad.length - 1; uiqwyeuiqwe > ahjdgajhsd; uiqwyeuiqwe--) {
                                    if (quiwyieqasdad[uiqwyeuiqwe] < quiwyieqasdad[uiqwyeuiqwe - 1]) {
                                        asdjasdhjkah = quiwyieqasdad[uiqwyeuiqwe];
                                        quiwyieqasdad[uiqwyeuiqwe] = quiwyieqasdad[uiqwyeuiqwe - 1];
                                        quiwyieqasdad[uiqwyeuiqwe - 1] = asdjasdhjkah;
                                    }
                                }
                            }
                            Log.i(TAG, "onVideoCached");
                            // 通知growMore缓存成功
                            callAdVideoCache();
                        }

                        @Override
                        public void onNoAD(AdError adError) {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
                            for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
                                int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
                                while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                                    arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                                    jfdsaipureqwrewq7843791298047ui--;
                                }
                                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
                            }
                            isLoadSuccess = false;
                            if (adError != null) {
                                Log.i(TAG, "onNoAD errorCode = " + adError.getErrorCode() + " errorMessage = " + adError.getErrorMsg());
                                callLoadFail(adError.getErrorCode(), adError.getErrorMsg());
                            } else {
                                callLoadFail(FFAConst.LOAD_ERROR, "no ad");
                            }
                        }

                        @Override
                        public void onADOpened() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            Log.i(TAG, "onADOpened");
                        }

                        @Override
                        public void onADExposure() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            Log.i(TAG, "onADExposure");
                            // 通知growmore展示   GMFullVideoAdListener#onFullVideoAdShow()
                            callFullVideoAdShow();
                        }

                        @Override
                        public void onADClicked() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            Log.i(TAG, "onADClicked");
                            // 通知GroMore 广告被点击了  GMFullVideoAdListener#onFullVideoAdClick()
                            callFullVideoAdClick();
                        }

                        @Override
                        public void onADLeftApplication() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            Log.i(TAG, "onADLeftApplication");
                        }

                        @Override
                        public void onADClosed() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            Log.i(TAG, "onADClosed");
                            // 通知GroMore 广告关闭    GMFullVideoAdListener#onFullVideoAdClosed()
                            callFullVideoAdClosed();
                        }

                        @Override
                        public void onRenderSuccess() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                            int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                            for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                    if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                        minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                    }
                                }
                                if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                    int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                    arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                    arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                }
                            }
                            Log.i(TAG, "onRenderSuccess");
                        }

                        @Override
                        public void onRenderFail() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                            int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                            for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                    if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                        minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                    }
                                }
                                if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                    int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                    arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                    arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                }
                            }
                            Log.i(TAG, "onRenderFail");
                        }
                    });
                    mUnifiedInterstitialAD.setMediaListener(new UnifiedInterstitialMediaListener() {

                        @Override
                        public void onVideoInit() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
                            for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
                                int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
                                while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                                    arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                                    jfdsaipureqwrewq7843791298047ui--;
                                }
                                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
                            }
                            Log.i(TAG, "onVideoInit");
                        }

                        @Override
                        public void onVideoLoading() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
                            for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
                                int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
                                while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                                    arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                                    jfdsaipureqwrewq7843791298047ui--;
                                }
                                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
                            }
                            Log.i(TAG, "onVideoLoading");
                        }

                        @Override
                        public void onVideoReady(long l) {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                            int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                            for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                    if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                        minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                    }
                                }
                                if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                    int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                    arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                    arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                }
                            }
                            Log.i(TAG, "onVideoReady");
                        }

                        @Override
                        public void onVideoStart() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            Log.i(TAG, "onVideoStart");
                        }

                        @Override
                        public void onVideoPause() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                            int keydasopuerqnfdazcveq = 4;
                            int lowupoeqfda7073fdal = 0;
                            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                            int middledaiueprnvznfewqip = 0;
                            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                                int adfajpouqregjbdipug = 1;
                            } else {
                                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                                        // 比关键字大则关键字在左区域
                                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                                        // 比关键字小则关键字在右区域
                                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                                    } else {
                                    }
                                }
                            }
                            Log.i(TAG, "onVideoPause");
                        }

                        @Override
                        public void onVideoComplete() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                            int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                            for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                    if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                        minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                    }
                                }
                                if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                    int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                    arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                    arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                }
                            }
                            Log.i(TAG, "onVideoComplete");
                            // 通知GroMore 广告播放完毕  GMFullVideoAdListener#onVideoComplete()
                            callFullVideoComplete();
                        }

                        @Override
                        public void onVideoError(AdError adError) {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] numbersfdajipureqvna3280 = new int[] { 2, 3 };
                            for (int ifdjaiopurq832074 = 0; ifdjaiopurq832074 < numbersfdajipureqvna3280.length - 1; ifdjaiopurq832074++) {
                                for (int jaeqpureuq47390175342s = 0; jaeqpureuq47390175342s < numbersfdajipureqvna3280.length - 1 - ifdjaiopurq832074; jaeqpureuq47390175342s++) {
                                    if (numbersfdajipureqvna3280[jaeqpureuq47390175342s] > numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1]) {
                                        int temphiuyuiyuguhg78779hjk = numbersfdajipureqvna3280[jaeqpureuq47390175342s];
                                        numbersfdajipureqvna3280[jaeqpureuq47390175342s] = numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1];
                                        numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1] = temphiuyuiyuguhg78779hjk;
                                    }
                                }
                            }
                            Log.i(TAG, "onVideoError");
                            // 通知GroMore 广告播放错误 GMFullVideoAdListener#onVideoError()
                            callFullVideoError();
                        }

                        @Override
                        public void onVideoPageOpen() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                            int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                            for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                    if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                        minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                    }
                                }
                                if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                    int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                    arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                    arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                }
                            }
                            Log.i(TAG, "onVideoPageOpen");
                        }

                        @Override
                        public void onVideoPageClose() {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
                            for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
                                int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
                                while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                                    arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                                    jfdsaipureqwrewq7843791298047ui--;
                                }
                                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
                            }
                            Log.i(TAG, "onVideoPageClose");
                        }
                    });
                    mUnifiedInterstitialAD.setRewardListener(new ADRewardListener() {

                        @Override
                        public void onReward(Map<String, Object> map) {
                            int passwordfdare32432qresafdsagda32 = 123456;
                            int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                            int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                            for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                    if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                        minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                    }
                                }
                                if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                    int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                    arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                    arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                }
                            }
                            Log.e(TAG, "onReward");
                            callFullVideoRewardVerify(new MediationRewardItem() {

                                @Override
                                public boolean rewardVerify() {
                                    int passwordfdare32432qresafdsagda32 = 123456;
                                    int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                                    int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                                    for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                        int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                        for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                            if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                                minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                            }
                                        }
                                        if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                            int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                            arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                            arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                        }
                                    }
                                    return true;
                                }

                                @Override
                                public float getAmount() {
                                    int passwordfdare32432qresafdsagda32 = 123456;
                                    int[] numbersfdajipureqvna3280 = new int[] { 2, 3 };
                                    for (int ifdjaiopurq832074 = 0; ifdjaiopurq832074 < numbersfdajipureqvna3280.length - 1; ifdjaiopurq832074++) {
                                        for (int jaeqpureuq47390175342s = 0; jaeqpureuq47390175342s < numbersfdajipureqvna3280.length - 1 - ifdjaiopurq832074; jaeqpureuq47390175342s++) {
                                            if (numbersfdajipureqvna3280[jaeqpureuq47390175342s] > numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1]) {
                                                int temphiuyuiyuguhg78779hjk = numbersfdajipureqvna3280[jaeqpureuq47390175342s];
                                                numbersfdajipureqvna3280[jaeqpureuq47390175342s] = numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1];
                                                numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1] = temphiuyuiyuguhg78779hjk;
                                            }
                                        }
                                    }
                                    if (adSlot != null) {
                                        return adSlot.getRewardAmount();
                                    }
                                    return 0;
                                }

                                @Override
                                public String getRewardName() {
                                    int passwordfdare32432qresafdsagda32 = 123456;
                                    int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                                    int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                                    for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                        int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                        for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                            if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                                minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                            }
                                        }
                                        if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                            int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                            arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                            arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                        }
                                    }
                                    if (adSlot != null) {
                                        return adSlot.getRewardName();
                                    }
                                    return "";
                                }

                                @Override
                                public Map<String, Object> getCustomData() {
                                    int passwordfdare32432qresafdsagda32 = 123456;
                                    int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
                                    int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
                                    for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
                                        int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
                                        for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                                            if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                                                minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                                            }
                                        }
                                        if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                                            int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                                            arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                                            arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
                                        }
                                    }
                                    return map;
                                }
                            });
                        }
                    });
                    mUnifiedInterstitialAD.loadFullScreenAD();
                } else {
                    callLoadFail(FFAConst.LOAD_ERROR, "context is not Activity");
                }
            }
        });
    }

    @Override
    public void showAd(Activity activity) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        /**
         * 展示广告  先切子线程，再在子线程中切主线程进行广告展示
         */
        ThreadUtils.runOnUIThreadByThreadPool(new Runnable() {

            @Override
            public void run() {
                int passwordfdare32432qresafdsagda32 = 123456;
                int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
                int keydasopuerqnfdazcveq = 4;
                int lowupoeqfda7073fdal = 0;
                int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
                int middledaiueprnvznfewqip = 0;
                if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                    int adfajpouqregjbdipug = 1;
                } else {
                    while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                        middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                        if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                            // 比关键字大则关键字在左区域
                            highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                        } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                            // 比关键字小则关键字在右区域
                            lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                        } else {
                        }
                    }
                }
                if (mUnifiedInterstitialAD != null) {
                    mUnifiedInterstitialAD.showFullScreenAD(activity);
                }
            }
        });
    }

    @Override
    public MediationConstant.AdIsReadyStatus isReadyCondition() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        /**
         * isReadyStatus广告是否有效 在子线程中进行广告是否可用的判断
         */
        Future<MediationConstant.AdIsReadyStatus> future = ThreadUtils.runOnThreadPool(new Callable<MediationConstant.AdIsReadyStatus>() {

            @Override
            public MediationConstant.AdIsReadyStatus call() throws Exception {
                int passwordfdare32432qresafdsagda32 = 123456;
                int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
                for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
                    int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
                    while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                        arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                        jfdsaipureqwrewq7843791298047ui--;
                    }
                    arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
                }
                if (mUnifiedInterstitialAD != null && mUnifiedInterstitialAD.isValid()) {
                    return MediationConstant.AdIsReadyStatus.AD_IS_READY;
                } else {
                    return MediationConstant.AdIsReadyStatus.AD_IS_NOT_READY;
                }
            }
        });
        try {
            // 设置500毫秒的总超时，避免线程阻塞
            MediationConstant.AdIsReadyStatus result = future.get(500, TimeUnit.MILLISECONDS);
            if (result != null) {
                return result;
            } else {
                return MediationConstant.AdIsReadyStatus.AD_IS_NOT_READY;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return MediationConstant.AdIsReadyStatus.AD_IS_NOT_READY;
    }

    /**
     * 是否clientBidding广告
     * int: 0:普通广告
     * 1:客户端竞价(clientBidding)广告
     * 100:P(置顶)层数据
     *
     * @return
     */
    public boolean isClientBidding() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] numbersfdajipureqvna3280 = new int[] { 2, 3 };
        for (int ifdjaiopurq832074 = 0; ifdjaiopurq832074 < numbersfdajipureqvna3280.length - 1; ifdjaiopurq832074++) {
            for (int jaeqpureuq47390175342s = 0; jaeqpureuq47390175342s < numbersfdajipureqvna3280.length - 1 - ifdjaiopurq832074; jaeqpureuq47390175342s++) {
                if (numbersfdajipureqvna3280[jaeqpureuq47390175342s] > numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1]) {
                    int temphiuyuiyuguhg78779hjk = numbersfdajipureqvna3280[jaeqpureuq47390175342s];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s] = numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1] = temphiuyuiyuguhg78779hjk;
                }
            }
        }
        Log.d(TAG, "isClientBidding() called");
        return getBiddingType() == MediationConstant.AD_TYPE_CLIENT_BIDING;
    }

    /**
     * @param win         是否在本次竞价中获胜
     * @param winnerPrice 获胜者价格，可能为0 ,如果没有胜出则该值是-1
     * @param loseReason  竞价失败原因 1:价格较低 2：广告返回超时 10001：其他 如果胜出则该值是-1
     * @param extra
     */
    @Override
    public void receiveBidResult(boolean win, double winnerPrice, int loseReason, Map<String, Object> extra) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        super.receiveBidResult(win, winnerPrice, loseReason, extra);
        Log.d(TAG, "receiveBidResult() called with: win = [" + win + "], winnerPrice = [" + winnerPrice + "], loseReason = [" + loseReason + "], extra = [" + extra + "]");
        if (win) {
            FFAEventUpload.getInstance().successEventReport(mUnifiedInterstitialAD, winnerPrice);
        } else {
            FFAEventUpload.getInstance().lossEventReport(mUnifiedInterstitialAD, winnerPrice, 1, loseReason);
        }
    }

    @Override
    public void onDestroy() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
        int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
        for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
            int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
            for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                    minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                }
            }
            if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
            }
        }
        super.onDestroy();
        /**
         * 在子线程中进行广告销毁
         */
        ThreadUtils.runOnThreadPool(() -> {
            if (mUnifiedInterstitialAD != null) {
                mUnifiedInterstitialAD.destroy();
                mUnifiedInterstitialAD = null;
            }
        });
    }
}
